package org.zj.webview.type;

/**
 * Logger interface.
 *
 * @author zj
 * @since 2025/7/2
 */
public interface ILogger {

    /**
     * Logs a message.
     *
     * @param level   the log level
     * @param message the message
     */
    void log(LogLevel level, String message);



    /**
     * Logs a message.
     *
     * @param level   the log level
     * @param message the message
     */
   default void log(int level, String message) {
       log(LogLevel.valueOf(level), message);
   }
}
